package com.mtzqc.common.init.impl

import android.app.Application
import com.didi.drouter.annotation.Service
import com.mtzqc.common.init.InitService
import com.mtzqc.common.task.ITask
import com.xuexiang.xui.XUI

@Service(function = [InitService::class],priority = 109)
class XUIRegister : InitService {
    override val depName: String
        get() = "XUI"
    override val dependsLib: Array<Class<out ITask>>?
        get() = null
    override val depends: Array<String>?
        get() = null
    override val priority: Int
        get() = 109

    override fun executeInit(app: Application, debug: Boolean, dev: Boolean): Boolean {
        XUI.init(app)
        XUI.debug(debug)
        return true
    }

}